package com.example.jg.presenter;

import com.example.jg.base.BasePresenter;
import com.example.jg.bean.HotBean;
import com.example.jg.model.HotCallBack;
import com.example.jg.model.HotModel;
import com.example.jg.view.HotView;

public class HotPresenter extends BasePresenter<HotView> implements HotCallBack {
    private HotModel model;
    @Override
    protected void initModel() {
        this.model=new HotModel();
        addModel(model);
    }
    public void getdata(){
        model.Hotdata(this);
    };
    @Override
    public void onSuccess(HotBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
